package TestSuite;

import java.util.Stack;

public class StackTest {

	public static void main(String[] args)
	{
		Stack<Object> s = new Stack<Object>();
		
		int i = 3;
		int ii = 6;
		int iii = 2;
		s.push(i);
		s.push(ii);
		s.push(iii);
		System.out.println(s.elementAt(0));
		s.set(1, 2);
		System.out.println(s.elementAt(1));
		System.out.println("i = " + i);
		i = (int)s.elementAt(2);
		System.out.println("i = " + i);
		System.out.println(s.elementAt(0));
		System.out.println(s.size());
		//Stack<Object> t = new Stack<Object>();
		//t = s.
		//s.copyInto();
	}
	
}
